package com.jingdianjichi.subject.controller.convert;

import com.jingdianjichi.subject.controller.dto.SubjectInfoDTO;
import com.jingdianjichi.subject.domain.entity.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import org.springframework.stereotype.Component;

import java.util.List;


@Mapper

public interface SubjectInfoDTOConverter {

    SubjectInfoDTOConverter INSTANCE = Mappers.getMapper(SubjectInfoDTOConverter.class);


    SubjectInfoBO convertDTOToBO(SubjectInfoDTO subjectInfoDTO);

    List<SubjectInfoDTO> converDto (List<SubjectInfoBO> subjectInfoBos);

    SubjectInfoDTO converSingleDto (SubjectInfoBO subjectInfoBos);

}
